import { ResultData } from "#/types";
export function codeSuccess(data: any = true): ResultData<typeof data> {
  return {
    code: "00000000",
    message: "success",
    data,
  };
}

export function codeFail(message = "fail"): ResultData {
  return {
    code: "01000000",
    message,
    data: false,
  };
}
